package com.ruoyi.community.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.community.mapper.HouseholdMapper;
import com.ruoyi.community.domain.Household;
import com.ruoyi.community.service.IHouseholdService;

/**
 * 住户管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-09
 */
@Service
public class HouseholdServiceImpl implements IHouseholdService 
{
    @Autowired
    private HouseholdMapper householdMapper;

    /**
     * 查询住户管理
     * 
     * @param id 住户管理主键
     * @return 住户管理
     */
    @Override
    public Household selectHouseholdById(Long id)
    {
        return householdMapper.selectHouseholdById(id);
    }

    /**
     * 查询住户管理列表
     * 
     * @param household 住户管理
     * @return 住户管理
     */
    @Override
    public List<Household> selectHouseholdList(Household household)
    {
        return householdMapper.selectHouseholdList(household);
    }

    /**
     * 新增住户管理
     * 
     * @param household 住户管理
     * @return 结果
     */
    @Override
    public int insertHousehold(Household household)
    {
        return householdMapper.insertHousehold(household);
    }

    /**
     * 修改住户管理
     * 
     * @param household 住户管理
     * @return 结果
     */
    @Override
    public int updateHousehold(Household household)
    {
        return householdMapper.updateHousehold(household);
    }

    /**
     * 批量删除住户管理
     * 
     * @param ids 需要删除的住户管理主键
     * @return 结果
     */
    @Override
    public int deleteHouseholdByIds(Long[] ids)
    {
        return householdMapper.deleteHouseholdByIds(ids);
    }

    /**
     * 删除住户管理信息
     * 
     * @param id 住户管理主键
     * @return 结果
     */
    @Override
    public int deleteHouseholdById(Long id)
    {
        return householdMapper.deleteHouseholdById(id);
    }
}
